<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" ng-click="$dismiss()" aria-label="Close">
            <em class="ion-ios-close-empty sn-link-close"></em>
        </button>
        <h4 class="modal-title" id="myModalLabel">班级添加学生</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="form-group col-sm-4 col-xs-8">
                <label>学生姓名：</label><input type="text" class="form-control" id="studentName" ng-model="vm.studentName" placeholder="输入学生姓名查询">
            </div>
            <div class="form-group col-sm-3 col-xs-6">
                <p style="margin: 0px;line-height: 20px;">&nbsp;</p>
                <button type="button" ng-click="vm.queryPage()" class="btn btn-primary">查询</button>&nbsp;&nbsp;
            </div>
        </div>
        <p>&nbsp;</p>
        <table class="table table-hover" st-table="smartTableData">
            <thead>
            <tr class="sortable ">
                <th class="table-left-font">学生姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>手机号码</th>
                <th>家庭住址</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in vm.page.pageResult">
                <td class="table-left-font">{{item.memberName}}</td>
                <td><span ng-if="item.memberSex == '1'">男</span><span ng-if="item.memberSex == '0'">女</span></td>
                <td>{{ item.memberBirthday | ageFilter }}</td>
                <td>{{item.memberPhone || "无"}}</td>
                <td>{{item.memberAddress}}</td>
                <td>
                    <a class="btn" ng-click="addStudent(item.id,$index)">添加</a>
                </td>
            </tr>
            <tr ng-show="vm.nodata">
                <th>未查询到该学生</th>
            </tr>
            </tbody>
            <tfoot ng-show="vm.page.pageTotalItemSize > vm.page.pageSize">
            <tr>
                <td colspan="6" class="text-center">
                    <uib-pagination total-items="vm.page.pageTotalItemSize"
                                    ng-model="vm.page.pageIndex"
                                    items-per-page="vm.page.pageSize"
                                    num-pages="vm.page.pageTotalPageSize"
                                    boundary-link-numbers="true"
                                    ng-change="vm.queryPage()"></uib-pagination>
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default btn-with-icon" ng-click="$dismiss()">取消</button>
    </div>
</div>
